package io.kiki.sba.registry.common.model.slot;

import io.kiki.sba.registry.common.model.GenericResponse;

import java.util.Map;


public class MultiSlotAccessGenericResponse<T> extends GenericResponse<T> {

    private final Map<String, SlotAccess> slotAccessMap;

    public MultiSlotAccessGenericResponse(boolean success, String message, T data, Map<String, SlotAccess> slotAccessMap) {
        this.slotAccessMap = slotAccessMap;
        this.setData(data);
        this.setSuccess(success);
        this.setMessage(message);
    }

    public static <T> MultiSlotAccessGenericResponse<T> failedResponse(String msg) {
        return new MultiSlotAccessGenericResponse(false, msg, null, null);
    }


}
